/*
 * @Author: 吴思浪
 * @Date: 2021-12-12 11:01:26
 * @LastEditors: 胡俊/treence
 * @LastEditTime: 2022-06-16 11:32:29
 * @Description: 
 * @Company: 3xData
 * @youWant: add you want
 */
import { message_list, message_form, message_readAll } from '@/api/message.js'


const message = {
    state: {
        pageCount: 1,
    },
    actions: {
        message_list ({ commit }, obj) {
            return new Promise((resolve, reject) => {
                message_list(obj, function (data) {
                    resolve(data)
                })
            })
        },
        message_form ({ commit }, obj) {
            return new Promise((resolve, reject) => {
                message_form(obj, function (data) {
                    resolve(data)
                })
            })
        },
        message_readAll ({ commit }, obj) {
            return new Promise((resolve, reject) => {
                message_readAll(obj, function (data) {
                    resolve(data)
                })
            })
        }
    }
}

export default message